<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ctrl_consulter
 *
 * @author Rolland
 */


class ctrl_consulter {
    function __construct() {
        $connexion = new ctrl_connexion();
        if($connexion->verifierConnexion()){
            $affiche = new ctrl_afficher();
        }
        else{
            $auth = new vAuthentification();
            $auth->afficher();
            echo "<span style='color: red; font-weight: bold; text-align: center;'>Vous avez saisi un mauvais mot de passe !</span>";
        }
        /*require '/Vue/vMain.php';
        $m = new vMain();   
        $lesEntrepots[0] = array("site" => "Site 1", "id" => "0");
        $lesEntrepots[1] = array("site" => "Site 2", "id" => "1");
        $m->afficher($lesEntrepots);*/
    }
    
}

?>
